package com.tedu.basic.Test;

import java.util.Scanner;

public class Test_if_Goods {
    public static void main(String[] args) {
        System.out.println("输入商品价格：  ");
        double price=new Scanner(System.in).nextInt();
        if(price>10000){
            System.out.println("打五折");
            System.out.println(price*0.5);
        }else if(price>5000){
            System.out.println("打七折");
            System.out.println(price*0.7);
        }else if(price>3000){
            System.out.println(price*0.9);
            System.out.println("打九折");
        }else{
            System.out.println("不打折！！！");
        }


    }
}
